/* 页面整体布局 */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f8f8;
    font-family: Arial, sans-serif;
}

/* 页面固定大小容器 */
.page-container {
    width: 393px;
    height: 852px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* 顶部背景图片 */
.image-placeholder {
    width: 100%;
    height: 250px; /* 增加高度以更好地展示背景 */
    background: url("photos/登录背景.jpg") no-repeat center center;
    background-size: cover;
}

/* 登录面板 */
.login-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

h1, h2 {
    margin: 10px 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.input-group {
    display: flex;
    align-items: center;
    margin: 10px 0;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background-color: #fafafa;
}

.input-group span {
    margin-right: 10px;
    color: #999;
}

.input-group input {
    border: none;
    outline: none;
    flex: 1;
    background: transparent;
    font-size: 1rem;
}

/* 按钮组 */
.button-group {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
}

.button-group button {
    flex: 1;
    margin: 5px;
    padding: 8px;
    background-color: #ccc;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.button-group button:hover {
    background-color: #bbb;
}

/* 登录按钮 */
.login-button {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.login-button:hover {
    background-color: #0056b3;
}

/* === 登录页面样式 === */

/* 设置整体页面大小为 393x853 */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    width: 393px;
    height: 853px;
    margin: 0 auto; /* 居中显示 */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden; /* 防止页面滚动 */
    position: relative; /* 使子元素使用相对位置参考 */
}

/* 搜索栏 */
.search-bar {
    padding: 5px;
    width: 90%;
    margin: 10px auto;
}

.search-bar input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
}

/* 轮播图 */
.carousel {
    margin: 0 auto;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    animation: slide 10s infinite;
}

.carousel-image {
    width: 393px; /* 与页面宽度一致 */
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

/* 轮播动画 */
@keyframes slide {
    0% { transform: translateX(0); }
    33% { transform: translateX(-100%); }
    66% { transform: translateX(-200%); }
    100% { transform: translateX(0); }
}

/* 三个按钮区域 */
.action-buttons {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    background-color: #fff;
    margin: 10px 0;
    width: 100%; 
}

.button-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
}

.button-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
}

/* 热门景点 */
.hotspots {
    background-color: #fff;
    padding: 10px 0;
    margin: 10px 0;
    height: 150px;
    overflow-y: auto;
    width: 100%; 
}

.hotspots h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.hotspot-items {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap; /* 允许换行 */
}

.hotspot-item {
    text-align: center;
    flex: 1 1 30%; /* 使每个 item 占据大约 30% 宽度，最多显示三个 */
    box-sizing: border-box; /* 防止因 padding 导致宽度超出 */
    margin: 5px; /* 调整间距 */
}

.hotspot-item img {
    width: 100%; /* 使图片宽度适应 item 宽度 */
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

/* 广告栏 */
.ad-space {
    width: 100%;
    padding: 5px 0;
    background-color: #fff;
    margin-bottom: 5px;
}

.ad-space img {
    width: 100%;
    height: auto;
}

/* 底部导航栏 */
.navbar {
    position: absolute;
    bottom: 0; /* 固定在页面底部 */
    left: 0;
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* 阴影效果 */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
}

.nav-item img {
    width: 24px;
    height: 24px;
}

/* 整体页面样式 */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    background-color: #ffffff;
    width: 393px;
    height: 853px;
    margin: 0 auto; /* 页面居中 */
    overflow: hidden;
}

/* 标题栏 */
.header {
    position: fixed; /* 固定在页面顶部 */
    top: 0; /* 距离顶部 0px */
    left: 50%;
    transform: translateX(-50%);
    width: 393px; /* 标题栏固定宽度 */
    height: 50px; /* 标题栏高度 */
    padding: 10px 0;
    background-color: #ddd;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    z-index: 1000; /* 确保标题栏位于最上层 */
}

/* 订单列表样式 */
.order-list {
    margin: 0;
    padding: 10px 0; /* 调整给标题栏和底部导航栏的空间 */
    display: flex;
    flex-direction: column;
    align-items: center; /* 居中内容 */
    width: 100%; /* 使列表宽度铺满容器 */
    margin-top: 50px; /* 紧贴标题栏下方 */
}

.order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%; /* 按钮整体宽度 */
    max-width: 393px; /* 最大宽度为 393px */
    height: 60px; /* 每个按钮的高度 */
    margin: 10px 0; /* 上下间隔 */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.order-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}


.order-button {
    display: inline-block;
    padding: 5px 15px;
    text-decoration: none;
    font-size: 14px;
    color: #333;
    border: 1px solid #666;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.order-button:hover {
    background-color: #ddd;
}

/* 底部导航栏 */
.navbar {
    position: absolute;
    bottom: 0; /* 固定在页面底部 */
    left: 0;
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* 阴影效果 */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
}

.nav-item img {
    width: 24px;
    height: 24px;
}



/* 页面基础设置 */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    background-color: #ffffff;
    display: flex;
    flex-direction: column; /* 垂直排列内容 */
    align-items: center; /* 居中内容 */
    justify-content: center; /* 垂直居中 */
    height: 100vh; /* 高度占满视口 */
    width: 393px; /* 设置宽度 */
    overflow: hidden; /* 超出部分隐藏 */
    margin: 0 auto; /* 页面居中 */
}

.container {
    width: 100%; /* 容器宽度百分比 */
    height: 853px; /* 容器高度 */
    display: flex;
    flex-direction: column; /* 垂直排列内容 */
    align-items: center; /* 居中内容 */
    justify-content: center; /* 垂直居中 */
}

.header {
    position: fixed; /* 固定在页面顶部 */
    top: 0; /* 距离顶部 0px */
    left: 50%;
    transform:translateX(-50%);
    width: 393px; /* 标题栏固定宽度 */
    height: 50px; /* 标题栏高度 */
    padding: 10px 0;
    background-color: #ddd;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    z-index: 1000; /* 确保标题栏位于最上层 */
}

/* 订单列表样式 */
.my-list {
    margin: 0;
    padding: 70px 0 10px; /* 给标题栏留出空间 */
    margin-bottom: 60px; /* 为底部导航栏留出空间 */
    display: flex;
    flex-direction: column;
    align-items: center; /* 居中内容 */
    width: 100%; /* 使列表宽度铺满容器 */
}

.my-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%; /* 按钮整体宽度 */
    max-width: 393px; /* 最大宽度为 393px */
    height: 60px; /* 每个按钮的高度 */
    margin: 10px 0; /* 上下间隔 */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.my-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

.my-button {
    flex-grow: 1;
    text-align: center;
    display: inline-block;
    padding: 5px 0;
    font-size: 16px;
    text-decoration: none;
    color: #333;
    border: 1px solid #666;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.my-button:hover {
    background-color: #ddd;
}

button[type='submit'] {
    flex-grow: 1;
    text-align: center;
    display: inline-block;
    padding: 5px 0;
    font-size: 16px;
    text-decoration: none;
    color: #333;
    border: 1px solid #666;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

button[type='submit']:hover {
    background-color: #ddd;
}

/* 修改注销账号的位置 */
.my-item.delete-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 393px;
    height: 60px;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.my-item.delete-account img {
    width: 30px; /* 调整图片大小 */
    height: 30px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

.my-item.delete-account button {
    margin-left: 10px;
    padding: 5px 116px; /* 调整按钮大小 */
}

/* 底部导航栏 */
.navbar {
    position: absolute;
    bottom: 0; /* 固定在页面底部 */
    left: 0;
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* 阴影效果 */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
}

.nav-item img {
    width: 24px;
    height: 24px;
}
